export enum SleepRecordSoundType{
  SleepRecordSoundTypeNone           = 0,
  SleepRecordSoundTypeSpeech         = 1,//梦话
  SleepRecordSoundTypeSnoring        = 2,//打呼噜
  SleepRecordSoundTypeMove           = 3,//翻身
  SleepRecordSoundTypeCough          = 4,//咳嗽
  //    SleepRecordSoundTypeAnimal         = 5,//动物
  SleepRecordSoundTypeGrindTeeth     = 6,//磨牙
  SleepRecordSoundTypeBird           = 7,//鸟叫
  SleepRecordSoundTypeDog            = 8,//狗叫
  SleepRecordSoundTypeCat            = 9,//猫叫
  SleepRecordSoundTypeCryingBaby     = 10,//婴儿哭
  SleepRecordSoundTypeUnusualSnoring = 11,//异常鼾声
  SleepRecordSoundTypeBreath         = 12,//呼吸
  SleepRecordSoundTypeOther          = 13,//其他
  SleepRecordSoundTypeCarHorn        = 14,//汽车
  SleepRecordSoundTypeCatathrenia    = 15,//夜间呻吟：哼唧
  SleepRecordSoundTypeSniffle        = 16,//抽鼻子：鼻塞
  SleepRecordSoundTypeSneeze         = 17,//打喷嚏

  SleepRecordSoundTypeApnea        = 99,//呼吸暂停
}

// hx audioclassify
/*
*
static NSString * const snoreStr       = @"snore";        //鼾声
static NSString * const speechStr      = @"speech";       //梦话
static NSString * const breathStr      = @"breath";       //呼吸
static NSString * const moveStr        = @"move";         //翻身
static NSString * const coughStr       = @"cough";        //咳嗽
static NSString * const birdStr        = @"bird";         //鸟叫
static NSString * const dogStr         = @"dog";          //狗叫
static NSString * const catStr         = @"cat";          //猫叫
static NSString * const grind_teethStr = @"grind_teeth";  //磨牙
static NSString * const crying_babyStr = @"crying_baby";  //婴儿哭
static NSString * const otherStr       = @"other";        //其他
static NSString * const unusualSnoreStr= @"unusual_snore";//异常鼾声
static NSString * const carHornStr     = @"car_horn";     //汽车
static NSString * const catathreniStr  = @"catathrenia";  //夜间呻吟：哼唧
static NSString * const sniffleStr     = @"sniffle";      //抽鼻子：鼻塞
static NSString * const apneaStr       = @"apnea";        //呼吸暂停
static NSString * const sneezeStr      = @"sneeze";       //打喷嚏
*
*/



export type AIData = {
  result?: number;
  respiration_rate?: number
  class_id?: number;
  id_prob?: number;
  start?: number;
  end?: number;
  apn_time?: number ;          // 呼吸暂停时间（秒）
  apn_max_dur?: number;        // 最长呼吸暂停持续时间
  apn_dur?: number;           // 总呼吸暂停时长
  apn_dangerous?: number;
  n_infe?: number;
  n_sleep_dur?: number;
  n_wake?: number;
  n_sleep_stage_event?: number;
  max_breath?: number;
  min_breath?: number;
  avg_breath?: number;
  times_breath?: number;
  pcm_buf?:Int16Array;
  // pcm_buf?: Int16Array;


  apn_data_length?: number;
  apn_data_start_index?: number;
  sleep_n_minute?: number;
  sleep_n_sneeze?: number;
  isOneSnore?: boolean;

  //pcmBuf: number[] = [];

  //新字段
  // ep_buf?:ArrayBuffer
  ep_buf?:Int16Array
  ep_secs?: number   //语音片段的时间长度，秒
  ep_len?: number
  ep_class_id?: number
  ep_score?: number
  ep_spl?: number
  ep_frm_cnt?: number
  ep_start_frm?: number
  del_frm?: number
  del_score?: number

  frm_cnt_hour?: number[][]
  snore_avg_dbs?: number[]
  snore_max_dbs?: number[]
  max_breath_rate?: number[]
  min_breath_rate?: number[]
  avg_breath_rate?: number[]
  noise_dbs?: number[]
  noise_types?: number[]
  cough_secs?: number[]


  move2walk_cnt?: number
  sleep_state?: number
  kindly_flag?: boolean






}
